package com.aplink.generic.pojo.controlspec;

import android.text.TextUtils;

public class CheckBoxSpec extends ControlSpec {
    private static final long serialVersionUID = 3533835041001402479L;
    private boolean isChecked;
    private String mDisableGroupID;
    private String mHideGroupID;
    private String mTextOff;
    private String mTextOn;
    private String mValueOff;
    private String mValueOn;
    private String mVisibilityGroupID;

    public String getDisableGroupID() {
        return this.mDisableGroupID;
    }

    public String getHideGroupID() {
        return this.mHideGroupID;
    }

    public String getTextOff() {
        return this.mTextOff;
    }

    public String getTextOn() {
        return this.mTextOn;
    }

    public String getValueOff() {
        return this.mValueOff;
    }

    public String getValueOn() {
        return this.mValueOn;
    }

    public String getVisibilityGroupID() {
        return this.mVisibilityGroupID;
    }

    public boolean isChecked() {
        return this.isChecked;
    }

    public boolean isDisable() {
        return !TextUtils.isEmpty(this.mDisableGroupID);
    }

    @Override
    public boolean isVisibility() {
        return !TextUtils.isEmpty(this.mVisibilityGroupID);
    }

    public void setChecked(final boolean isChecked) {
        this.isChecked = isChecked;
    }

    public void setDisableGroupID(final String disableGroupID) {
        this.mDisableGroupID = disableGroupID;
    }

    public void setHideGroupID(final String hideGroupID) {
        this.mHideGroupID = hideGroupID;
    }

    public void setTextOff(final String textOff) {
        this.mTextOff = textOff;
    }

    public void setTextOn(final String textOn) {
        this.mTextOn = textOn;
    }

    public void setValueOff(final String valueOff) {
        this.mValueOff = valueOff;
    }

    public void setValueOn(final String valueOn) {
        this.mValueOn = valueOn;
    }

    public void setVisibilityGroupID(final String visibilityGroupID) {
        this.mVisibilityGroupID = visibilityGroupID;
    }

}
